package com.ruoyi.tjbb.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.tjbb.mapper.SysTjbbYjcljxmxMapper;
import com.ruoyi.tjbb.domain.SysTjbbYjcljxmx;
import com.ruoyi.tjbb.service.ISysTjbbYjcljxmxService;

/**
 * 夜间车辆禁行明细Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-09-26
 */
@Service
public class SysTjbbYjcljxmxServiceImpl implements ISysTjbbYjcljxmxService 
{
    @Autowired
    private SysTjbbYjcljxmxMapper sysTjbbYjcljxmxMapper;

    /**
     * 查询夜间车辆禁行明细
     * 
     * @param id 夜间车辆禁行明细主键
     * @return 夜间车辆禁行明细
     */
    @Override
    public SysTjbbYjcljxmx selectSysTjbbYjcljxmxById(Long id)
    {
        return sysTjbbYjcljxmxMapper.selectSysTjbbYjcljxmxById(id);
    }

    /**
     * 查询夜间车辆禁行明细列表
     * 
     * @param sysTjbbYjcljxmx 夜间车辆禁行明细
     * @return 夜间车辆禁行明细
     */
    @Override
    public List<SysTjbbYjcljxmx> selectSysTjbbYjcljxmxList(SysTjbbYjcljxmx sysTjbbYjcljxmx)
    {
        return sysTjbbYjcljxmxMapper.selectSysTjbbYjcljxmxList(sysTjbbYjcljxmx);
    }

    /**
     * 新增夜间车辆禁行明细
     * 
     * @param sysTjbbYjcljxmx 夜间车辆禁行明细
     * @return 结果
     */
    @Override
    public int insertSysTjbbYjcljxmx(SysTjbbYjcljxmx sysTjbbYjcljxmx)
    {
        return sysTjbbYjcljxmxMapper.insertSysTjbbYjcljxmx(sysTjbbYjcljxmx);
    }

    /**
     * 修改夜间车辆禁行明细
     * 
     * @param sysTjbbYjcljxmx 夜间车辆禁行明细
     * @return 结果
     */
    @Override
    public int updateSysTjbbYjcljxmx(SysTjbbYjcljxmx sysTjbbYjcljxmx)
    {
        return sysTjbbYjcljxmxMapper.updateSysTjbbYjcljxmx(sysTjbbYjcljxmx);
    }

    /**
     * 批量删除夜间车辆禁行明细
     * 
     * @param ids 需要删除的夜间车辆禁行明细主键
     * @return 结果
     */
    @Override
    public int deleteSysTjbbYjcljxmxByIds(Long[] ids)
    {
        return sysTjbbYjcljxmxMapper.deleteSysTjbbYjcljxmxByIds(ids);
    }

    /**
     * 删除夜间车辆禁行明细信息
     * 
     * @param id 夜间车辆禁行明细主键
     * @return 结果
     */
    @Override
    public int deleteSysTjbbYjcljxmxById(Long id)
    {
        return sysTjbbYjcljxmxMapper.deleteSysTjbbYjcljxmxById(id);
    }
}
